package com.renge.eduservice.client;

import com.renge.commonutils.R;
import com.renge.eduservice.client.impl.VodFileDegradeFeignClient;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name="service-vod",fallback = VodFileDegradeFeignClient.class)
public interface VodClient {
    @ApiOperation(value = "根据视频id删除阿里云上的视频")
    @DeleteMapping("/eduvod/{videoId}")
    public R deleteVideoById(@ApiParam(name = "videoId",value = "视频id",required = true)
                             @PathVariable("videoId")String videoId);
}
